package NGUYENVANDOAN.XMLEXCERCISES;
import java.util.List;

import vn.edu.imic.XmlProcess.*;

public class MODELS {
    
    /***
     * Nghiệp vụ thêm mới dữ liệu vào XML Files
     * @param lisField
     * @param lisValues
     * @param rootNode
     * @param elementNode
     * @param path
     * @param writeType
     * @return
     * @throws Exception
     */
    public boolean WriteItems(List<Object> lisField,
                                                         List<List<Object>> lisValues, 
                                                         String rootNode,
                                                         String elementNode,
                                                         String path,
                                                         boolean writeType) throws Exception{
        return (new XMLManagements()).
                        WriteDataXML(lisField, lisValues, rootNode, 
                                        elementNode, path, writeType);
    }
}
